export type SystemInfo = {
  hostname: string
  arch: string
  platform: string
  cpu: string
  totalMem: string // 总内存，单位GB
}

export type MemStatus = {
  used: number // 已使用内存，单位字节
  total: number // 总内存，单位字节
  usedPercent: number // 已使用内存百分比
}

export type NetWorkLoad = {
  rx: number // 接收的字节数
  tx: number // 发送的字节数
}

export type CpuMonitorData = {
  currentValue: number | undefined
  history: number[]
  clearHistory: () => void
}

export type MemMonitorData = {
  currentValue: MemStatus | undefined
  history: MemStatus[]
  clearHistory: () => void
}

export type NetworkMonitorData = {
  currentValue: { rxRate: number; txRate: number } | undefined
  history: { rxRate: number; txRate: number }[]
  clearHistory: () => void
}
